/** 请求成功的返回数据 */
export const createSuccessResponse = (msg: string, data?: any) => {
  return {
    code: 0,
    msg,
    data,
  }
}

/** 请求失败的返回数据 */
export const createErrorResponse = (msg: string) => {
  return {
    code: -1,
    msg
  }
}